package view.product;

import javax.swing.BorderFactory;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.LayoutStyle;

public class ProductSubMobileTablet extends JPanel {
	private static final long serialVersionUID = 1L;
	private JComboBox<String> cbbProdsubmobleRam;
    private JLabel lblProdsubmobleBattery;
    private JLabel lblProdsubmobleCamera;
    private JLabel lblProdsubmobleCpu;
    private JLabel lblProdsubmobleMah;
    private JLabel lblProdsubmobleMp;
    private JLabel lblProdsubmobleMp1;
    private JLabel lblProdsubmobleRam;
    private JLabel lblProdsubmobleScreen;
    private JLabel lblProdsubmobleSdcard;
    private JTextField txtProdsubmobleBattery;
    private JTextField txtProdsubmobleCamera;
    private JTextField txtProdsubmobleCpu;
    private JTextField txtProdsubmobleRam;
    private JTextField txtProdsubmobleScreen;
    private JTextField txtProdsubmobleSdcard;
	public ProductSubMobileTablet() {
        initComponents();
    }

    public JComboBox<String> getCbbProdsubmobleRam() {
		return cbbProdsubmobleRam;
	}

	public void setCbbProdsubmobleRam(JComboBox<String> cbbProdsubmobleRam) {
		this.cbbProdsubmobleRam = cbbProdsubmobleRam;
	}

	public JTextField getTxtProdsubmobleBattery() {
		return txtProdsubmobleBattery;
	}

	public void setTxtProdsubmobleBattery(JTextField txtProdsubmobleBattery) {
		this.txtProdsubmobleBattery = txtProdsubmobleBattery;
	}

	public JTextField getTxtProdsubmobleCamera() {
		return txtProdsubmobleCamera;
	}

	public void setTxtProdsubmobleCamera(JTextField txtProdsubmobleCamera) {
		this.txtProdsubmobleCamera = txtProdsubmobleCamera;
	}

	public JTextField getTxtProdsubmobleCpu() {
		return txtProdsubmobleCpu;
	}

	public void setTxtProdsubmobleCpu(JTextField txtProdsubmobleCpu) {
		this.txtProdsubmobleCpu = txtProdsubmobleCpu;
	}

	public JTextField getTxtProdsubmobleRam() {
		return txtProdsubmobleRam;
	}

	public void setTxtProdsubmobleRam(JTextField txtProdsubmobleRam) {
		this.txtProdsubmobleRam = txtProdsubmobleRam;
	}

	public JTextField getTxtProdsubmobleScreen() {
		return txtProdsubmobleScreen;
	}

	public void setTxtProdsubmobleScreen(JTextField txtProdsubmobleScreen) {
		this.txtProdsubmobleScreen = txtProdsubmobleScreen;
	}

	public JTextField getTxtProdsubmobleSdcard() {
		return txtProdsubmobleSdcard;
	}

	public void setTxtProdsubmobleSdcard(JTextField txtProdsubmobleSdcard) {
		this.txtProdsubmobleSdcard = txtProdsubmobleSdcard;
	}

	private void initComponents() {

        lblProdsubmobleCpu = new JLabel();
        txtProdsubmobleCpu = new JTextField();
        txtProdsubmobleRam = new JTextField();
        txtProdsubmobleSdcard = new JTextField();
        txtProdsubmobleCamera = new JTextField();
        txtProdsubmobleScreen = new JTextField();
        txtProdsubmobleBattery = new JTextField();
        lblProdsubmobleRam = new JLabel();
        lblProdsubmobleSdcard = new JLabel();
        lblProdsubmobleCamera = new JLabel();
        lblProdsubmobleScreen = new JLabel();
        lblProdsubmobleBattery = new JLabel();
        lblProdsubmobleMah = new JLabel();
        cbbProdsubmobleRam = new JComboBox<String>();
        lblProdsubmobleMp = new JLabel();
        lblProdsubmobleMp1 = new JLabel();

        setBorder(BorderFactory.createTitledBorder("Detail"));

        lblProdsubmobleCpu.setFont(new java.awt.Font("Calibri", 0, 12)); 
        lblProdsubmobleCpu.setText("CPU:");

        txtProdsubmobleRam.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txt_prodsubmoble_ramActionPerformed(evt);
            }
        });

        lblProdsubmobleRam.setFont(new java.awt.Font("Calibri", 0, 12)); 
        lblProdsubmobleRam.setText("RAM:");

        lblProdsubmobleSdcard.setFont(new java.awt.Font("Calibri", 0, 12)); 
        lblProdsubmobleSdcard.setText("SD Card:");

        lblProdsubmobleCamera.setFont(new java.awt.Font("Calibri", 0, 12)); 
        lblProdsubmobleCamera.setText("Camera:");

        lblProdsubmobleScreen.setFont(new java.awt.Font("Calibri", 0, 12)); 
        lblProdsubmobleScreen.setText("Screen:");

        lblProdsubmobleBattery.setFont(new java.awt.Font("Calibri", 0, 12)); 
        lblProdsubmobleBattery.setText("Battery:");

        lblProdsubmobleMah.setFont(new java.awt.Font("Calibri", 0, 12)); 
        lblProdsubmobleMah.setText("mAh");

        cbbProdsubmobleRam.setModel(new DefaultComboBoxModel<String>(new String[] { "GB", "MB"}));

        lblProdsubmobleMp.setFont(new java.awt.Font("Calibri", 0, 12)); 
        lblProdsubmobleMp.setText("MP");

        lblProdsubmobleMp1.setFont(new java.awt.Font("Calibri", 0, 12)); 
        lblProdsubmobleMp1.setText("GB");

        GroupLayout layout = new GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(48, 48, 48)
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(lblProdsubmobleCpu)
                    .addComponent(lblProdsubmobleRam)
                    .addComponent(lblProdsubmobleSdcard)
                    .addComponent(lblProdsubmobleCamera)
                    .addComponent(lblProdsubmobleScreen)
                    .addComponent(lblProdsubmobleBattery))
                .addGap(34, 34, 34)
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtProdsubmobleCpu)
                    .addComponent(txtProdsubmobleRam)
                    .addComponent(txtProdsubmobleSdcard)
                    .addComponent(txtProdsubmobleCamera)
                    .addComponent(txtProdsubmobleScreen)
                    .addComponent(txtProdsubmobleBattery, GroupLayout.PREFERRED_SIZE, 117, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(lblProdsubmobleMah)
                    .addComponent(lblProdsubmobleMp)
                    .addComponent(lblProdsubmobleMp1)
                    .addComponent(cbbProdsubmobleRam, GroupLayout.PREFERRED_SIZE, 40, GroupLayout.PREFERRED_SIZE))
                .addContainerGap(39, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                    .addComponent(lblProdsubmobleCpu)
                    .addComponent(txtProdsubmobleCpu, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(lblProdsubmobleRam)
                    .addGroup(GroupLayout.Alignment.TRAILING, layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                        .addComponent(txtProdsubmobleRam, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addComponent(cbbProdsubmobleRam, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                    .addComponent(txtProdsubmobleSdcard, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblProdsubmobleSdcard)
                    .addComponent(lblProdsubmobleMp1))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                    .addComponent(txtProdsubmobleCamera, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblProdsubmobleCamera)
                    .addComponent(lblProdsubmobleMp))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                    .addComponent(txtProdsubmobleScreen, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblProdsubmobleScreen))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                    .addComponent(txtProdsubmobleBattery, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblProdsubmobleBattery)
                    .addComponent(lblProdsubmobleMah))
                .addContainerGap(20, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void txt_prodsubmoble_ramActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txt_prodsubmoble_ramActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txt_prodsubmoble_ramActionPerformed


    
}
